const router = require('koa-router')()
const { queryInfo, updateHomeList } = require("../controller/home")
router.prefix('/api/home')

router.get('/bannerInfo', async (ctx) => {
    await queryInfo(ctx, ctx.request.query)
})

router.post('/addHomeInfo', async (ctx) => {
    await updateHomeList(ctx, ctx.request.body)
})

module.exports = router;